Optimal. Leaf size=36 \[ -\frac {7}{12 x^3}+\frac {1}{4 x^3 \left (1-x^4\right )}+\frac {7}{8} \tan ^{-1}(x)+\frac {7}{8} \tanh ^{-1}(x) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 36, normalized size of antiderivative = 1.00, number of steps
used = 6, number of rules used = 6, integrand size = 16, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.375, Rules used = {28, 296, 331,
218, 212, 209} \begin {gather*} \frac {7 \text {ArcTan}(x)}{8}-\frac {7}{12 x^3}+\frac {1}{4 x^3 \left (1-x^4\right )}+\frac {7}{8} \tanh ^{-1}(x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 28
Rule 209
Rule 212
Rule 218
Rule 296
Rule 331
Rubi steps
\begin {align*} \int \frac {1}{x^4 \left (1-2 x^4+x^8\right )} \, dx &=\int \frac {1}{x^4 \left (-1+x^4\right )^2} \, dx\\ &=\frac {1}{4 x^3 \left (1-x^4\right )}-\frac {7}{4} \int \frac {1}{x^4 \left (-1+x^4\right )} \, dx\\ &=-\frac {7}{12 x^3}+\frac {1}{4 x^3 \left (1-x^4\right )}-\frac {7}{4} \int \frac {1}{-1+x^4} \, dx\\ &=-\frac {7}{12 x^3}+\frac {1}{4 x^3 \left (1-x^4\right )}+\frac {7}{8} \int \frac {1}{1-x^2} \, dx+\frac {7}{8} \int \frac {1}{1+x^2} \, dx\\ &=-\frac {7}{12 x^3}+\frac {1}{4 x^3 \left (1-x^4\right )}+\frac {7}{8} \tan ^{-1}(x)+\frac {7}{8} \tanh ^{-1}(x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.01, size = 38, normalized size = 1.06 \begin {gather*} \frac {1}{48} \left (-\frac {16}{x^3}-\frac {12 x}{-1+x^4}+42 \tan ^{-1}(x)-21 \log (1-x)+21 \log (1+x)\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.03, size = 47, normalized size = 1.31
method | result | size |
risch | \(\frac {-\frac {7 x^{4}}{12}+\frac {1}{3}}{x^{3} \left (x^{4}-1\right )}-\frac {7 \ln \left (-1+x \right )}{16}+\frac {7 \arctan \left (x \right )}{8}+\frac {7 \ln \left (1+x \right )}{16}\) | \(36\) |
default | \(-\frac {1}{16 \left (-1+x \right )}-\frac {7 \ln \left (-1+x \right )}{16}+\frac {x}{8 x^{2}+8}+\frac {7 \arctan \left (x \right )}{8}-\frac {1}{3 x^{3}}-\frac {1}{16 \left (1+x \right )}+\frac {7 \ln \left (1+x \right )}{16}\) | \(47\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.52, size = 37, normalized size = 1.03 \begin {gather*} -\frac {7 \, x^{4} - 4}{12 \, {\left (x^{7} - x^{3}\right )}} + \frac {7}{8} \, \arctan \left (x\right ) + \frac {7}{16} \, \log \left (x + 1\right ) - \frac {7}{16} \, \log \left (x - 1\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 63 vs.
\(2 (26) = 52\).
time = 0.32, size = 63, normalized size = 1.75 \begin {gather*} -\frac {28 \, x^{4} - 42 \, {\left (x^{7} - x^{3}\right )} \arctan \left (x\right ) - 21 \, {\left (x^{7} - x^{3}\right )} \log \left (x + 1\right ) + 21 \, {\left (x^{7} - x^{3}\right )} \log \left (x - 1\right ) - 16}{48 \, {\left (x^{7} - x^{3}\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.09, size = 39, normalized size = 1.08 \begin {gather*} \frac {4 - 7 x^{4}}{12 x^{7} - 12 x^{3}} - \frac {7 \log {\left (x - 1 \right )}}{16} + \frac {7 \log {\left (x + 1 \right )}}{16} + \frac {7 \operatorname {atan}{\left (x \right )}}{8} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 3.28, size = 34, normalized size = 0.94 \begin {gather*} -\frac {x}{4 \, {\left (x^{4} - 1\right )}} - \frac {1}{3 \, x^{3}} + \frac {7}{8} \, \arctan \left (x\right ) + \frac {7}{16} \, \log \left ({\left | x + 1 \right |}\right ) - \frac {7}{16} \, \log \left ({\left | x - 1 \right |}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 1.29, size = 28, normalized size = 0.78 \begin {gather*} \frac {7\,\mathrm {atan}\left (x\right )}{8}+\frac {7\,\mathrm {atanh}\left (x\right )}{8}+\frac {\frac {7\,x^4}{12}-\frac {1}{3}}{x^3-x^7} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________